import request from '@/utils/request'

/**
* 产品类型配置表分页查询
* @param {查询条件} data
*/
export function listCksProductTypeConfigConfig(query) {
  return request({
    url: 'business/cksproducttypeconfig/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增产品类型配置表
* @param data
*/
export function addCksProductTypeConfigConfig(data) {
  return request({
    url: 'business/cksproducttypeconfig',
    method: 'post',
    data: data,
  })
}
/**
* 修改产品类型配置表
* @param data
*/
export function updateCksProductTypeConfigConfig(data) {
  return request({
    url: 'business/cksproducttypeconfig',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取产品类型配置表详情
* @param {Id}
*/
export function getCksProductTypeConfigConfig(id) {
  return request({
    url: 'business/cksproducttypeconfig/' + id,
    method: 'get'
  })
}

/**
* 删除产品类型配置表
* @param {主键} pid
*/
export function delCksProductTypeConfigConfig(pid) {
  return request({
    url: 'business/cksproducttypeconfig/delete/' + pid,
    method: 'delete'
  })
}
